<?php

namespace Biz\Constants\OAuth;

/**
 * OAuthConstants.
 *
 * @license [http://www.85do.com] [杭州永奥网络科技有限公司]
 * @copyright Copyright (c) 2018-2026 Hangzhou Yongao Technology Co., Ltd. All rights reserved.
 */
class ScopeConstants
{
    /**
     * Scopes.
     */
    const SCOPE_ALL         = '*'; // 所有权限
    const SCOPE_USER        = 'user'; // 普通用户
    const SCOPE_USER_CLIENT = 'user_client'; // 业主客户
    const SCOPE_USER_MEMBER = 'user_member'; // 会员用户
    const SCOPE_APP         = 'app'; // 应用
    const SCOPE_APP_SITE    = 'app_site'; // 网站应用

    /**
     * Passport Config Scopes.
     *
     * @var array
     */
    public static $PassportScopes = [
        self::SCOPE_ALL         => 'All Scopes',
        self::SCOPE_USER        => 'User Scope',
        self::SCOPE_USER_CLIENT => 'User Client Scope',
        self::SCOPE_USER_MEMBER => 'User Member Scope',
        self::SCOPE_APP         => 'App Scope',
        self::SCOPE_APP_SITE    => 'App Site Scope',
    ];

    /**
     * Scopes Names.
     *
     * @var array
     */
    public static $ScopeNames = [
        self::SCOPE_ALL => '所有访问权限',
    ];
}
